<template>
  <div class="dashboard-container">
    <el-row>
      <el-col :span="24">
        <div class="grid-content bg-purple" >
          <el-select v-model="value" placeholder="请选择" size="medium" class="select1" style="width:30%;">
          <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled"></el-option>
          </el-select>
          <el-button type="primary" icon="el-icon-search" style="margin-left:20px;">查询</el-button>
        </div>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="12">
        <div class="card-panel" @click="handleSetLineChartData('purchases')">
            <div class="card-panel-icon-wrapper icon-money">
              <svg-icon icon-class="nested" class-name="card-panel-icon" />
            </div>
            <div class="card-panel-description">
              <div class="card-panel-text">
                当月总产能（kW·h）：54,819,000
              </div>
              
            </div>
          </div>
      </el-col>
        <el-col :span="12">
         <div class="card-panel" @click="handleSetLineChartData('messages')">
            <div class="card-panel-icon-wrapper icon-message">
              <svg-icon icon-class="example" class-name="card-panel-icon" />
            </div>
            <div class="card-panel-description">
              <div class="card-panel-text">
               下小时预计产能（kW·h）：870
              </div>
              
            </div>
          </div>
      </el-col>  		
    </el-row>
    <el-row>
      <el-col :span="12">
        <div class="dgrid-content bg-purple-light2">
          <div class="chart-title"><div class="el-icon-caret-right"></div>冰蓄冷系统当天产能数据</div>
          <line-chart/>
        </div>
      </el-col>
  		<el-col :span="12">
        <div class="grid-content bg-purple-light2">
           <div class="chart-title"><div class="el-icon-caret-right"></div>水蓄能系统当天产能数据</div>
          <line-chart/>
        </div>
      </el-col>  		
    </el-row>
    <el-row>
      <el-col :span="12">
        <div class="dgrid-content bg-purple-light2">
          <div class="chart-title"><div class="el-icon-caret-right"></div>三联供系统当天产能数据</div>
          <line-chart-bot/>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="grid-content bg-purple-light2">
          <div class="chart-title"><div class="el-icon-caret-right"></div>双工况冷机系统当天产能数据</div>
          <line-chart/>
        </div>
      </el-col>  		
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import LineChart from './components/LineChart'
import LineChartBot from './components/LineChartBot'
export default {
  name: 'ProductivityData',
  components: {		
		LineChart,
		LineChartBot
  },
      data() {
      return {
        options: [{
          value: 'enery1',
          label: '第一号能源站',
          
        }, {
          value: 'enery2',
          label: '第二号能源站'
        }, {
          value: 'enery3',
          label: '第三号能源站'
        }, {
          value: 'enery4',
          label: '第四号能源站'
        }, {
          value: 'enery5',
          label: '第五号能源站'
        }],
        value: ''
      }
    }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
 .card-panel {
    height: 108px;
    cursor: pointer;
    font-size: 22px;
    position: relative;
    overflow: hidden;
    color: #666;
    background: #fff;
    border-style:solid; 
    border-color: black;
    border-width: 3px;
    box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
    border-color: rgba(0, 0, 0, .05);

    &:hover {
      .card-panel-icon-wrapper {
        color: #fff;
      }

      .icon-people {
        background: #40c9c6;
      }

      .icon-message {
        background: #36a3f7;
      }

      .icon-money {
        background: #f4516c;
      }

      .icon-shopping {
        background: #34bfa3
      }
    }

    .icon-people {
      color: #40c9c6;
    }

    .icon-message {
      color: #36a3f7;
    }

    .icon-money {
      color: #f4516c;
    }

    .icon-shopping {
      color: #34bfa3
    }

    .card-panel-icon-wrapper {
      float: left;
      margin: 14px 0 0 14px;
      padding: 16px;
      transition: all 0.38s ease-out;
      border-radius: 6px;
    }

    .card-panel-icon {
      float: left;
      font-size: 48px;
    }

    .card-panel-description {
      float: left;
      font-weight: bold;
      margin: 26px;
      margin-left: 0px;
      text-align: left;

      .card-panel-text {
        line-height: 38px;
        color: rgba(0, 0, 0, 0.45);
        font-size: 22px;
        margin-left: 60px;
        text-align: left;
        margin-bottom: 12px;
      }

      .card-panel-num {
        font-size: 20px;        
      }
    }
  }
  .bg-purple-light2 {
    background: #fff;
	height: 420px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	color: #666;
	background: #fff;
	border-style:solid; 
	border-color: black;
	border-width: 3px;
	box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
	border-color: rgba(0, 0, 0, .05);
  }
  	 .chart-title{
    height: 25px;
    line-height: 25px;
    font-size: 18px;
    border-bottom: 1px #efefef solid;

  }
  .chart-content{
    height: calc(100% - 25px);
  }
</style>
